<template>
  <el-dialog
    title="选择标准"
    width="80%"
    :close-on-click-modal="false"
    :before-close="close"
    :visible.sync="standardSelectVisible"
    append-to-body>
    <standard :isNoSelect="false" :grandDataForm="childDataForm" @clickRow="clickRow" />
  </el-dialog>
</template>

<script>
import Standard from './standard'
export default {
  name: 'standard-select',
  data () {
    return {
      standardSelectVisible: false
    }
  },
  props:["childDataForm"],
  created() {
		this.standardSelectVisible = true
	},
  components: {
    Standard
  },
  methods: {
  	close() {
      this.$emit('closeInner', 'standardSelectVisible')
  		this.standardSelectVisible = false
  	},
    clickRow (row) {
      this.close()
      this.$emit('getStandard',row)
    }
  }
}
</script>

<style scoped>

</style>
